package com.zkj.service;

import com.zkj.dto.OrdersPaymentDTO;
import com.zkj.dto.OrdersSubmitDTO;
import com.zkj.vo.OrderPaymentVO;
import com.zkj.vo.OrderSubmitVO;
import com.zkj.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author zkj
 * @since 2024-08-22
 */
public interface IOrdersService extends IService<Orders> {

    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

}
